import request from '@/utils/request';
import { UserStatisic, KindCount, ThreeKindCount, Platform } from './types/department';
import { Wrapper } from './types/result';
/**
 * 获取用户信息
 */

export function getUserStatisic() {
  return request<Wrapper<UserStatisic>>({
    url: '/api/app/user/getSysuserCount',
    method: 'GET'
  })
}

/**
 * 六类划分统计
 */

export function getKindCount() {
  return request<Wrapper<KindCount>>({
    url: '/api/app/user/getKindCount',
    method: 'GET'
  })
}

/**
 * 三类划分统计
 */

 export function getThreeKindCount() {
  return request<Wrapper<ThreeKindCount>>({
    url: '/api/app/user/getGraderCount',
    method: 'GET'
  })
}

/**
 * 获取企业回复排行
 */
 export function getPlatformReply() {
  return request<Wrapper<Platform>>({
    url: '/api/app/user/getReplyCount',
    method: 'GET'
  })
}

/**
 * 获取企业回复排行未及时
 */
 export function getPlatformNotReply() {
  return request<Wrapper<Platform>>({
    url: '/api/app/user/getReplyCountNot',
    method: 'GET'
  })
}

/**
 * 获取监管机构回复排行
 */
 export function getOrgReply() {
  return request<Wrapper<Platform>>({
    url: '/api/app/user/getOrgReplyCount',
    method: 'GET'
  })
}

/**
 * 获取监管机构回复排行未及时
 */
 export function getOrgNotReply() {
  return request<Wrapper<Platform>>({
    url: '/api/app/user/getOrgReplyCountNot',
    method: 'GET'
  })
}